{extend name="public:base" /}
{block name="breadcrumbs"}
<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="{:url('Index/index')}">首页</a>
							</li>
							<li class="active">系统设置</li>
						</ul><!-- .breadcrumb -->
					</div>
{/block}					
{block name="content"}
<div class="page-content">
	<div class="page-header">
		<h1>
			当前操作
			<small>
				<i class="icon-double-angle-right"></i>
				 站点设置
			</small>
		</h1>
	</div>
	<div class="row">
		<div class="col-xs-12">
			<div class="form-horizontal"  name="sys" >
			<form id="sys">
			<input type="hidden" name="id" value="{$list.id|default=''}">
				<div class="form-group">
					<label for="sitename" class="col-sm-3 control-label no-padding-right"> 站点名称： </label>
					<div class="col-sm-9">
						<input type="text" name="sitename" class="col-xs-10 col-sm-5" placeholder="站点名称" id="sitename" value="{$list.sitename|default=''}">
					</div>
				</div>
				
				<div class="form-group">
					<label for="siteurl" class="col-sm-3 control-label no-padding-right"> 站点网址： </label>
					<div class="col-sm-9">
						<input type="text" name="siteurl" class="col-xs-10 col-sm-5" placeholder="站点网址" id="siteurl" value="{$list.siteurl|default=''}">
					</div>
				</div>
				
				<div class="form-group">
					<label for="keyinfo" class="col-sm-3 control-label no-padding-right"> 站点描述： </label>
					<div class="col-sm-9">
						<textarea maxlength="100" id="keyinfo" class="col-xs-10 col-sm-7 limited" cols="20" name="keyinfo" >{$list.keyinfo|default=''}</textarea>
					</div>
				</div>
				
				<div class="form-group">
					<label for="icp" class="col-sm-3 control-label no-padding-right"> 站点备案： </label>
					<div class="col-sm-9">
						<input type="text" name="icp" class="col-xs-10 col-sm-5" placeholder="站点备案" id="icp" value="{$list.icp|default=''}">
					</div>
				</div>
				</form>
				<div class="clearfix">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-info" id="send">
							<i class="ace-icon fa fa-check bigger-110"></i>
							保存
						</button>		
						
					</div>
				</div>
				
			</div>			
		</div>
	</div>
</div>
{/block}
{block name="script"}
			<script type="text/javascript">	
			$('#send').click(function(){
				$.post(
					"{:url('Config/setting')}",
					$("#sys").serializeArray(),
					function(d){
						//alert(d.msg);
						layer.msg(d.msg, {time: 6000, icon:6},function(){
							window.location.reload();							
						});
							//layer.msg(d,{icon:1});
							//window.location.reload();
					}
				);
			});
			</script>
{/block}